package com.lebang.feign;

import com.lebang.feign.fallback.AppDictFallback;
import com.lebangweb.response.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: ljx
 * @Date: 2020/12/14
 * @Version 1.0
 */
@FeignClient(name = "wangzhuan-basesystem",contextId = "wangzhuan-basesystem-appdict", fallback = AppDictFallback.class)
public interface AppDictFeign {
    /**
     * 根据key查询字典
     * @param key
     * @return
     */
    @GetMapping("/api/appdict/get")
    JsonData get(@RequestParam("key") String key, @RequestParam("appId") Integer appId);
}
